package com.baizhi.hospital.service.impl;

import com.baizhi.hospital.dao.UserDao;
import com.baizhi.hospital.entity.User;
import com.baizhi.hospital.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceImpl implements UserService {
	@Autowired(required = false)
	private UserDao userDao;
	@Override
	@Transactional(readOnly = true)
	public User selectUserNameAndpassword(String name, String password) {
		return userDao.selectUserNameAndpassword(name,password);
	}
}
